﻿<Window x:Class="Password_Generator.About"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Password_Generator"
    Title="2013, KwestDG" Height="300" Width="300"
        WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize" 
        Icon="/Password Generator;component/Resources/KDG_Logo.png">
    <Window.DataContext>
        <local:GenerateViewModel />
    </Window.DataContext>

    <!--Fade in effect for application window.-->
    <Window.Triggers>
        <EventTrigger RoutedEvent="Window.Loaded">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Duration="00:00:01"
                                     Storyboard.TargetProperty="Opacity"
                                     From="0"
                                     To="1" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Window.Triggers>

    <Grid ShowGridLines="False" 
          Background="WhiteSmoke">
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="155" />
            <RowDefinition />
            <RowDefinition Height="40" />

        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Label Content="{Binding Path= Title, Mode=OneWay}"
               Grid.Row="0"
               Grid.ColumnSpan="2"
               Style="{DynamicResource CustomLabel}"
               HorizontalAlignment="Center"
               Margin="0,0,0,0"/>

        <StackPanel Grid.Row="1" 
                    Grid.Column="0" 
                    Margin="15,15,0,0">
            <Label Style="{DynamicResource CustomLabel}" Content="Developers"/>
            <TextBlock Text="{Binding Path= Devs, Mode=OneTime}"
                       Margin="0,0,0,0"/>
        </StackPanel>

        <StackPanel Grid.Row="1" 
                    Grid.Column="1">
            <Image Source="..\Resources\KDG_Logo.png" />

        </StackPanel>

        <TextBlock Grid.Row="2" 
                   Grid.ColumnSpan="2"
                   FontSize="10"
                   HorizontalAlignment="Center" Margin="12,23,12,17" Grid.RowSpan="2">
                   <Hyperlink x:Name="link"
                              Click="link_Click"
                              NavigateUri="http://www.apache.org/licenses/LICENSE-2.0.html">
                       This application is licensed according to the Apache license.
                   </Hyperlink>
        </TextBlock>

    </Grid>
</Window>
